package generator.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @TableName t_user_info
 */
@TableName(value ="t_user_info")
public class UserInfo implements Serializable {
    /**
     * 主键，自增
     */
    @TableId(type = IdType.AUTO)
    private Integer userInfoId;

    /**
     * 员工编号
     */
    private String userInfoNo;

    /**
     * 人员姓名
     */
    private String userName;

    /**
     * 所属部门id
     */
    private Integer userDeptId;

    /**
     * 性别 0-女 1-男
     */
    private String userInfoSex;

    /**
     * 联系方式
     */
    private String userInfoPhone;

    /**
     * 入职时间
     */
    private String userInfoEntryTime;

    /**
     * 创建时间
     */
    private String userInfoCreateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 主键，自增
     */
    public Integer getUserInfoId() {
        return userInfoId;
    }

    /**
     * 主键，自增
     */
    public void setUserInfoId(Integer userInfoId) {
        this.userInfoId = userInfoId;
    }

    /**
     * 员工编号
     */
    public String getUserInfoNo() {
        return userInfoNo;
    }

    /**
     * 员工编号
     */
    public void setUserInfoNo(String userInfoNo) {
        this.userInfoNo = userInfoNo;
    }

    /**
     * 人员姓名
     */
    public String getUserName() {
        return userName;
    }

    /**
     * 人员姓名
     */
    public void setUserName(String userName) {
        this.userName = userName;
    }

    /**
     * 所属部门id
     */
    public Integer getUserDeptId() {
        return userDeptId;
    }

    /**
     * 所属部门id
     */
    public void setUserDeptId(Integer userDeptId) {
        this.userDeptId = userDeptId;
    }

    /**
     * 性别 0-女 1-男
     */
    public String getUserInfoSex() {
        return userInfoSex;
    }

    /**
     * 性别 0-女 1-男
     */
    public void setUserInfoSex(String userInfoSex) {
        this.userInfoSex = userInfoSex;
    }

    /**
     * 联系方式
     */
    public String getUserInfoPhone() {
        return userInfoPhone;
    }

    /**
     * 联系方式
     */
    public void setUserInfoPhone(String userInfoPhone) {
        this.userInfoPhone = userInfoPhone;
    }

    /**
     * 入职时间
     */
    public String getUserInfoEntryTime() {
        return userInfoEntryTime;
    }

    /**
     * 入职时间
     */
    public void setUserInfoEntryTime(String userInfoEntryTime) {
        this.userInfoEntryTime = userInfoEntryTime;
    }

    /**
     * 创建时间
     */
    public String getUserInfoCreateTime() {
        return userInfoCreateTime;
    }

    /**
     * 创建时间
     */
    public void setUserInfoCreateTime(String userInfoCreateTime) {
        this.userInfoCreateTime = userInfoCreateTime;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        UserInfo other = (UserInfo) that;
        return (this.getUserInfoId() == null ? other.getUserInfoId() == null : this.getUserInfoId().equals(other.getUserInfoId()))
            && (this.getUserInfoNo() == null ? other.getUserInfoNo() == null : this.getUserInfoNo().equals(other.getUserInfoNo()))
            && (this.getUserName() == null ? other.getUserName() == null : this.getUserName().equals(other.getUserName()))
            && (this.getUserDeptId() == null ? other.getUserDeptId() == null : this.getUserDeptId().equals(other.getUserDeptId()))
            && (this.getUserInfoSex() == null ? other.getUserInfoSex() == null : this.getUserInfoSex().equals(other.getUserInfoSex()))
            && (this.getUserInfoPhone() == null ? other.getUserInfoPhone() == null : this.getUserInfoPhone().equals(other.getUserInfoPhone()))
            && (this.getUserInfoEntryTime() == null ? other.getUserInfoEntryTime() == null : this.getUserInfoEntryTime().equals(other.getUserInfoEntryTime()))
            && (this.getUserInfoCreateTime() == null ? other.getUserInfoCreateTime() == null : this.getUserInfoCreateTime().equals(other.getUserInfoCreateTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getUserInfoId() == null) ? 0 : getUserInfoId().hashCode());
        result = prime * result + ((getUserInfoNo() == null) ? 0 : getUserInfoNo().hashCode());
        result = prime * result + ((getUserName() == null) ? 0 : getUserName().hashCode());
        result = prime * result + ((getUserDeptId() == null) ? 0 : getUserDeptId().hashCode());
        result = prime * result + ((getUserInfoSex() == null) ? 0 : getUserInfoSex().hashCode());
        result = prime * result + ((getUserInfoPhone() == null) ? 0 : getUserInfoPhone().hashCode());
        result = prime * result + ((getUserInfoEntryTime() == null) ? 0 : getUserInfoEntryTime().hashCode());
        result = prime * result + ((getUserInfoCreateTime() == null) ? 0 : getUserInfoCreateTime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", userInfoId=").append(userInfoId);
        sb.append(", userInfoNo=").append(userInfoNo);
        sb.append(", userName=").append(userName);
        sb.append(", userDeptId=").append(userDeptId);
        sb.append(", userInfoSex=").append(userInfoSex);
        sb.append(", userInfoPhone=").append(userInfoPhone);
        sb.append(", userInfoEntryTime=").append(userInfoEntryTime);
        sb.append(", userInfoCreateTime=").append(userInfoCreateTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}